import service from '@/utils/crmRequest'
export default () => ({
    // 列表
    COMMERCIAL_LIST: (data) => {
        return service({
            url: '/api/seller/list',
            method: 'post',
            data
        })
    },
    // 增
    COMMERCIAL_CREATE: (data) => {
        return service({
            url: '/api/seller/create?from=1',
            method: 'post',
            data
        })
    },
    //页面更新
    COMMERCIAL_UPDATE: (data) => {
        return service({
            url: '/api/seller/update?from=1',
            method: 'put',
            data
        })
    },
    //查询详情
    COMMERCIAL_DATAIL: (id) => {
        return service({
            url: `/api/seller/detail?id=${id}`,
            method: 'get',
        })
    },
    //内容变更
    COMMERCIAL_CHANGE: (data) => {
        return service({
            url: '/api/seller/change?from=1',
            method: 'put',
            data
        })
    },

})